home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
026-050
/
scopedisk30
/
shell210
/
todo
< prev
next >
Wrap
Text File
|
1995-03-18
|
1KB
|
65 lines
-SetFileDate() routine in comm2.c
-set xx " x" initial space ignored in quoted section.
-change -f to -e
-version
-history rel.
-flag copy noisy.
recompile version
LATTICE free_memory().
PIPE/PARALLEL implimentation:
a | b -pipe
a || b -execute in parallel parallel
break each command into:
command, parameters
input redirection or pipe in
output redirection or pipe out
call command executor
MUST always specify redirection file names.
command executor:
If not pipe segment (last seg is not considered a pipe)
execute via shell
else
execute a RUN via shell
send pipe terminate command for input and output pipe's in case RUN
failed.
external(avlist, infilename, outfilename)
char **avlist;
char *infilename; NULL means take last pipe segment
char *outfilename; NULL means send to next pipe segment
{
figure out aux. names (for pipes).
if (outfilename == NULL) {
exec a c:RUN >file <file
if (infilename == NULL) /* Ensure pipe has been cleared */
pipeclear inpipe
if (outfilename == NULL)
pipeclear outpipe
} else {
open pert. files
exec a .........
close pert. files
}
}